import request from '@/utils/request'

// 发送AI问题
export function sendQuestion(data) {
  return request({
    url: '/ai/chat',
    method: 'post',
    data
  })
}

// 获取历史对话
export function getChatHistory() {
  return request({
    url: '/ai/history',
    method: 'get'
  })
}